from django.conf.urls import patterns, include, url


urlpatterns = patterns('',
    # Examples:
    #url(r'^$', 'OpenGoals.views.home', name='home'),
    url(r'^goals/add/sub/(?P<parent_id>\d+)/$', 'opengoal.views.add_goal_sub'),
    url(r'^goals/add/copy/(?P<goal_id>\d+)/$', 'opengoal.views.add_goal_copy'),
    url(r'^goals/add/$', 'opengoal.views.add_goal'),
    url(r'^goals/delete/(?P<goal_id>\d+)/$', 'opengoal.views.delete_goal'),
    url(r'^goals/edit/(?P<goal_id>\d+)/$', 'opengoal.views.edit_goal'),
    url(r'^journals/$', 'opengoal.views.journals'),
    url(r'^journals/delete/(?P<journal_id>\d+)/$', 'opengoal.views.delete_journal'),
    url(r'^journals/edit(?P<journal_id>\d*)/$', 'opengoal.views.journal_edit'),
    url(r'^tasks(?P<goal_id>\d*)/$', 'opengoal.views.tasks'),
    url(r'^tasks/delete/(?P<task_id>\d+)/$', 'opengoal.views.delete_task'),
    url(r'^tasks/complete/(?P<task_id>\d+)/$', 'opengoal.views.complete_task'),
    url(r'^goals/$', 'opengoal.views.goal_list'),
)